From: Marco Trevisan (TreviƱo) Date: Fri, 14 Jun 2019 14:44:19 +0000 (+0300) Subject: animation: Don't sync animation sizes on change X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~781^2^2~537 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=74d7d3e2595a4efe29c7a00d6d58466e53bc6fa0;p=gnome-shell.git animation: Don't sync animation sizes on change When the actor size changes, we might incur into an allocation cycle. This was introduced by commit b6ec02ce, but when the animation will be an actor itself, there will be no need to update the children size on actor size update, as this will be managed by the actor allocation cycle itself. Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/issues/1384 https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/559 --- diff --git a/js/ui/animation.js b/js/ui/animation.js index 18c837e82..3ad1358d5 100644 --- a/js/ui/animation.js +++ b/js/ui/animation.js @@ -12,7 +12,6 @@ var Animation = class { this.actor = new St.Bin(); this.actor.set_size(width, height); this.actor.connect('destroy', this._onDestroy.bind(this)); - this.actor.connect('notify::size', this._syncAnimationSize.bind(this)); this.actor.connect('resource-scale-changed', this._loadFile.bind(this, file, width, height));